<template>
  <div>
    我是嵌套路由的foo
  </div>
</template>

<script>
  export default {
    mounted(){
      // console.log(this.$route.params);
    },
    beforeRouteEnter(to,from,next){
      console.log("beforeRouteEnter---导航被确定进去时调用");
      next()
    },
    beforeRouteUpdate(to,from,next){
      console.log("beforeRouteEnter---导航被复用时调用");
      next()
    },
     beforeRouteLeave(to,from,next){
      console.log("beforeRouteleave---导航离开时调用");
      next()
    },
  }
</script>

<style scoped>

</style>